using UnityEngine;
using System.Collections;
using System.Collections.Generic;

public class Node {
	
	
        public Node parent = null;
        public Node sister = null;
		public Node[] children = new Node[2]; 
        public Line splitLine = null;
        public Rectangles myRectangle = null;
		public Rectangles myRoom = null;
		public bool HorzTrue = false;
		public int id;
		
	
		public bool didSplit = false;
	
		public Node ()
	{
		id = Guis.worldID;
		Guis.worldID++;
		myRectangle = new Rectangles();	
		myRoom = new Rectangles();
	}
	
		//public ArrayList rooms = new ArrayList();
	
	public void AddRectangle (Rectangles newRect) 
        {        
         myRectangle = newRect;
        }
	
	public void AddRoom (Rectangles newRoom)
        {
            if (myRoom != null)
			{
			myRoom = newRoom;
			}
			else
			{
		Debug.Log("Already set up #N2");
			}
        }
	
    
	
                
	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
	
	}
}
